<div style="width: <%- width %>;margin: 0 auto">
    <canvas id="<%- id %>" style="height: <%- height %>px"></canvas>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.9.3/dist/Chart.min.js"></script>
<script type="text/javascript">
    var ctx = document.getElementById('<%- id %>').getContext('2d');
    var options = <%= option %>;
    new Chart(ctx, options);
</script>